<?php
session_start();
if(!$_SESSION["trv3_07"]){
	header("location:../login.php");
	exit;
}
require "../resources/v1.php";
$conexion = server_reconnect();
if( !get_magic_quotes_gpc()){
	isset($_GET['autos']) ? $_SESSION["trv3_20"] = addslashes( trim( $_GET['autos'])) : $_SESSION["trv3_20"] = 0;
	isset($_GET['tip']) ? $_SESSION["trv3_25"] = addslashes( trim( $_GET['tip'])) : $_SESSION["trv3_25"] = 0;
}else{
	isset($_GET['autos']) ? $_SESSION["trv3_20"] = trim( $_GET['autos']) : $_SESSION["trv3_20"] = 0;
	isset($_GET['tip']) ? $_SESSION["trv3_25"] = trim( $_GET['tip']) : $_SESSION["trv3_25"] = 0;
}
$query = "select `nro` from `exp` where `autos`=".$_SESSION["trv3_20"]." and `tip`=".$_SESSION["trv3_25"];
$result = mysql_query( $query, $conexion);
$mxcel = @mysql_fetch_row( $result);
$_SESSION["trv3_21"] = $mxcel[0];
$_SESSION["trv3_30"] = 1;
server_disconnect( $conexion);
header("location:../new/generarMatriz.php");
?>